home *** CD-ROM | disk | FTP | other *** search
/ Programming Sound Cards / Programming Sound Cards.iso / sound_58 / patch.txt < prev    next >
Text File  |  1995-01-01  |  1KB  |  32 lines

  1. (This is the reply to a report about gcc-programs crashing after allocating
  2.  both DOS and standard memory. It concerns go32 1.11.maint5)
  3.  
  4. Hi
  5.  
  6. I experienced the same problem lately. There is a bug in go32, in valloc.c.
  7. I have fixed this and sent this fix to DJ, but I didn`t get the confirmation,
  8. so I send it to you.
  9. The base memory is allocated, but the same pages are reallocated again for
  10. protected mode program.
  11.                              Grzegorz W. Jablonski
  12.                               grzegorz@kmm-lx.p.lodz.pl
  13.  
  14. *** valloc.org    Thu Feb 17 01:40:00 1994
  15. --- valloc.c    Fri May  6 18:40:54 1994
  16. ***************
  17. *** 254,263 ****
  18. --- 254,265 ----
  19.       r.r_ax = 0x4a00;    /* modify real memory size */
  20.       r.r_bx = lol;
  21.       r.r_es = valloc_lowmem_page;
  22.   /*    printf("to %d (0x%04x)\n", lol, valloc_lowmem_page); */
  23.       intr(0x21, &r);
  24. +     /* GWJ change 1994-05-06 */
  25. +     pn_lo_last = ((valloc_lowmem_page+lol-0x100)>>8); /* highest real mem 4K block */
  26.     }
  27.   /*  else
  28.     {
  29.       printf("most avail pages is %d (wanted %d)\n", pn_lo_last - pn_lo_next, pages);
  30.     } */
  31.  
  32.